﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WeSpot.Models
{
    //general items

    public partial class Rootobject
    {
        public string type { get; set; }
        public int gameId { get; set; }
        public bool deleted { get; set; }
        public long lastModificationDate { get; set; }
        public int id { get; set; }
        public int sortKey { get; set; }
        public string scope { get; set; }
        public string name { get; set; }
        public string description { get; set; }
        public bool autoLaunch { get; set; }
        public bool showCountDown { get; set; }
        public object[] roles { get; set; }
        public Filereference[] fileReferences { get; set; }
        public string richText { get; set; }
    }

    public class Filereference
    {
        public string type { get; set; }
        public string key { get; set; }
        public string md5Hash { get; set; }
        public string fileReference { get; set; }
    }

    public partial class Rootobject
    {
        //public string type { get; set; }
        public long serverTime { get; set; }
        public Generalitem[] generalItems { get; set; }
    }

    public class Generalitem
    {
        public string type { get; set; }
        public int gameId { get; set; }
        public bool deleted { get; set; }
        public long lastModificationDate { get; set; }
        public int id { get; set; }
        public int sortKey { get; set; }
        public string scope { get; set; }
        public string name { get; set; }
        public string description { get; set; }
        public Dependson dependsOn { get; set; }
        public bool autoLaunch { get; set; }
        public bool showCountDown { get; set; }
        public object[] roles { get; set; }
        public object[] fileReferences { get; set; }
        public string richText { get; set; }
        public string audioFeed { get; set; }
        public bool autoPlay { get; set; }
    }

    public class Dependson
    {
        public string type { get; set; }
        public string action { get; set; }
        public int scope { get; set; }
        public int generalItemId { get; set; }
    }

    //responses

    public partial class Rootobject
    {
        //public string type { get; set; }
        //public bool deleted { get; set; }
        public Respons[] responses { get; set; }
        //public long serverTime { get; set; }
        public string resumptionToken { get; set; }
    }

    public class Respons
    {
        public string type { get; set; }
        public long timestamp { get; set; }
        public int runId { get; set; }
        public bool deleted { get; set; }
        public int generalItemId { get; set; }
        public string userEmail { get; set; }
        public string responseValue { get; set; }
    }

    //messages

    public partial class Rootobject
    {
        //public string type { get; set; }
        public int threadId { get; set; }
        //public string name { get; set; }
        public string runId { get; set; }
    }

    public partial class Rootobject
    {
        public Class1[] Property1 { get; set; }
    }

    public partial class Class1
    {
        public string type { get; set; }
        public int threadId { get; set; }
        public string name { get; set; }
        public string runId { get; set; }
        public bool _default { get; set; }
    }

    public partial class Rootobject
    {
        //public string type { get; set; }
        //public int threadId { get; set; }
        public bool _default { get; set; }
        //public string name { get; set; }
        //public string runId { get; set; }
    }

    public partial class Rootobject
    {
        //public string type { get; set; }
        public string subject { get; set; }
        //public string threadId { get; set; }
        //public string runId { get; set; }
        public string[] userIds { get; set; }
    }

    public partial class Rootobject
    {
        //public Class1[] Property1 { get; set; }
    }

    public partial class Class1
    {
        //public string type { get; set; }
        public string messageId { get; set; }
        public string subject { get; set; }
        //public string threadId { get; set; }
        //public string runId { get; set; }
        public long date { get; set; }
        public string[] userIds { get; set; }
    }
    
    public partial class Rootobject
    {
        //public Class1[] Property1 { get; set; }
    }

    public partial class Class1
    {
        //public string type { get; set; }
        //public string messageId { get; set; }
        public string body { get; set; }
        //public string runId { get; set; }
    }



}